﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AAddMinorWorkProjects.aspx.cs" Inherits="AB.ServiceDirectory.Design.Premises.AAddMinorWorkProjects" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <%@ register tagprefix="wuc" tagname="DialogBox" src="~/WebUserControls/DialogBox.ascx" %>
    <script src="../js/jquery.ui/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
            $(".startExpected").datepicker({ dateFormat: 'dd/mm/yy' });
            $(".startDate").datepicker({ dateFormat: 'dd/mm/yy' });
            $(".endDate").datepicker({ dateFormat: 'dd/mm/yy' });
        });

        function set_service_extendable() {
            if (!$('#CheckBoxServiceExtendable').attr('checked')) {
                $('input[id=TextBoxExtendableYears]').attr('disabled', 'disabled').addClass('st-disable');
                $('input[id=TextBoxExtendableMonths]').attr('disabled', 'disabled').addClass('st-disable');
            } else {
                $('input[id=TextBoxExtendableYears]').removeAttr('disable').removeClass('st-disable');
                $('input[id=TextBoxExtendableMonths]').removeAttr('disabled').removeClass('st-disable');
            }
        }

        function set_time_limited() {
            if (!$('#CheckBoxTimeLimited').attr('checked')) {
                $('input[id=TextBoxLimitedYears]').attr('disabled', 'disabled').addClass('st-disable');
                $('input[id=TextBoxLimitedMonths]').attr('disabled', 'disabled').addClass('st-disable');
            } else {
                $('input[id=TextBoxLimitedYears]').removeAttr('disable').removeClass('st-disable');
                $('input[id=TextBoxLimitedMonths]').removeAttr('disabled').removeClass('st-disable');
            }
        }

        function confirm_inactive() {
            return confirm('Do you want to make this Service active ?');
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
    <h2>
        Project / Minor Works</h2>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="server">
    <wuc:dialogbox ID="DialogBox" runat="server" />
    <asp:ValidationSummary ID="ValidationSummary" runat="server" CssClass="albox warningbox" />
    <div id="tabs">
        <ul>
            <li>
                <asp:HyperLink ID="LinkDetails01" NavigateUrl="#DetailsPanel01" runat="server">Project / Minor Works</asp:HyperLink></li>
            
        </ul>
        <span class="top-right-cornor">
            <asp:Button CssClass="st-button" ID="ButtonSave" runat="server" Text="Save" CommandName="new" />
            <asp:Button CssClass="st-button" ID="ButtonBack" runat="server" Text="Back" PostBackUrl="~/Services/ServiceList.aspx"
                CausesValidation="False" />
        </span>
        <!--DETAILS PANEL 01-->
        <asp:Panel ID="DetailsPanel01" ClientIDMode="Static" runat="server">
            <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelPmvDescription" runat="server" Text="P/MW Description" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxPmvDescription" Width="100px">
                        </asp:Label><asp:TextBox ID="TextBoxPmvDescription" CssClass="st-forminput" runat="server"
                            TextMode="MultiLine" Rows="4" Width="210px"></asp:TextBox></div>
                    <div class="half last">
                        <asp:Label ID="Label1" runat="server" Text="Contact" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxContract" Width="137px">
                        </asp:Label><asp:TextBox ID="TextBoxContract" CssClass="st-forminput" runat="server"
                            Width="120px"></asp:TextBox><asp:LinkButton ID="ButtonContactLookup" runat="server"
                                CssClass="hg-blue" Text="Lookup" CausesValidation="False" CommandName="contact" /><h2>
                                    &nbsp;</h2>
                        <div class="clear">
                        </div>
                        <asp:Label ID="Label2" runat="server" Text="Authorised Name" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxAuthorizedName" Width="137px">
                        </asp:Label><asp:TextBox ID="TextBoxAuthorizedName" CssClass="st-forminput" runat="server"
                            Width="120px"></asp:TextBox><asp:LinkButton ID="LinkButton1" runat="server" CssClass="hg-blue"
                                Text="Lookup" CausesValidation="False" CommandName="contact" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:RadioButton ID="RadioButton1" runat="server" class="radio" Text="Project" GroupName="CheckBox"
                            Checked="true" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:RadioButton ID="RadioButton2" runat="server" class="radio" Text="Minor Works"
                            GroupName="CheckBox" /><h2>&nbsp;</h2>
                        <div class="clear">
                        </div>
                        <asp:Label ID="Label3" runat="server" Text="Is TBA?" CssClass="st-labeltext level1"
                            Width="100px" />
                        <asp:CheckBox ID="CheckBoxActive" runat="server" Enabled="True" CssClass="service_active"
                            ClientIDMode="Static" />
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelContractCode" runat="server" Text="Status" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxStatus" Width="137px">
                        </asp:Label><asp:TextBox ID="TextBoxStatus" CssClass="st-forminput" runat="server"
                            Width="150px"></asp:TextBox><h2>
                                &nbsp;</h2>
                        <div class="clear">
                        </div>
                        <asp:Label ID="LabelEnquiryReceivedDate" runat="server" Text="P/MW Enquiry Received Date"
                            CssClass="st-labeltext level1" AssociatedControlID="TextBoxEnquiryReceivedDate"
                            Width="137px">
                        </asp:Label><asp:TextBox ID="TextBoxEnquiryReceivedDate" CssClass="inputDate datepicker-input datepicker startExpected"
                            runat="server" Width="150px" Text=""></asp:TextBox><br />
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Date format must be correct"
                            ControlToValidate="TextBoxEnquiryReceivedDate" Display="Dynamic" Operator="DataTypeCheck"
                            SetFocusOnError="True" Type="Date" ForeColor="#990033"></asp:CompareValidator>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelNotesActions" runat="server" Text="Notes Actions" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxNotesActions" Width="100px">
                        </asp:Label><asp:TextBox ID="TextBoxNotesActions" CssClass="st-forminput" runat="server"
                            TextMode="MultiLine" Rows="4" Width="210px"></asp:TextBox>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelAuthorizedName" runat="server" Text="Authorised Date" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxAuthorizedName" Height="16px" Width="137px"></asp:Label><asp:TextBox
                                ID="TexBoxAuthorizedName" CssClass="inputDate datepicker-input datepicker startExpected"
                                runat="server" Width="150px" Text=""></asp:TextBox><br />
                        <asp:CompareValidator ID="CompareValidator2" runat="server" ErrorMessage="Date format must be correct"
                            ControlToValidate="TextBoxAuthorizedName" Display="Dynamic" Operator="DataTypeCheck"
                            SetFocusOnError="True" Type="Date" ForeColor="#990033"></asp:CompareValidator><h2>
                                &nbsp;</h2>
                        <div class="clear">
                        </div>
                        <h2>
                        </h2>
                        <asp:Label ID="Label7" runat="server" Text="Actual Start Date" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxActualStartDate" Width="137px">
                        </asp:Label><asp:TextBox ID="TextBoxActualStartDate" CssClass="inputDate datepicker-input datepicker startExpected"
                            runat="server" Width="150px" Text=""></asp:TextBox>
                        <br />
                        <asp:CompareValidator ID="CompareValidator3" runat="server" ErrorMessage="Date format must be correct"
                            ControlToValidate="TextBoxActualStartDate" Display="Dynamic" Operator="DataTypeCheck"
                            SetFocusOnError="True" Type="Date" ForeColor="#990033"></asp:CompareValidator>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelEstimatedCode" runat="server" Text="Estimated Cost" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxEstimatedCode" Width="100px">
                        </asp:Label><asp:TextBox ID="TextBoxEstimatedCode" CssClass="st-forminput" runat="server"
                            Width="100px"></asp:TextBox></div>
                    <div class="half last">
                        <asp:Label ID="LabelAnticipatedCompletion" runat="server" Text="Anticipated Completion"
                            CssClass="st-labeltext level1" AssociatedControlID="TextBoxAnticipatedCompletion"
                            Width="137px">
                        </asp:Label><asp:TextBox ID="TextBoxAnticipatedCompletion" CssClass="inputDate datepicker-input datepicker startExpected"
                            runat="server" Width="150px" Text=""></asp:TextBox>
                        <br />
                        <asp:CompareValidator ID="CompareValidator4" runat="server" ErrorMessage="Date format must be correct"
                            ControlToValidate="TextBoxAnticipatedCompletion" Display="Dynamic" Operator="DataTypeCheck"
                            SetFocusOnError="True" Type="Date" ForeColor="#990033"></asp:CompareValidator>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelActualCost" runat="server" Text="Actual Cost" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxActualCost" Width="100px">
                        </asp:Label><asp:TextBox ID="TextBoxActualCost" CssClass="st-forminput" runat="server"
                            Width="100px"></asp:TextBox></div>
                    <div class="half last">
                        <asp:Label ID="LabelActualCompletionDate" runat="server" Text="Actual Completion Date"
                            CssClass="st-labeltext level1" AssociatedControlID="TextBoxActualCompletionDate"
                            Width="137px">
                        </asp:Label><asp:TextBox ID="TextBoxActualCompletionDate" CssClass="inputDate datepicker-input datepicker startExpected"
                            runat="server" Width="150px" Text=""></asp:TextBox><br />
                        <asp:CompareValidator ID="CompareValidator5" runat="server" ErrorMessage="Date format must be correct"
                            ControlToValidate="TextBoxActualCompletionDate" Display="Dynamic" Operator="DataTypeCheck"
                            SetFocusOnError="True" Type="Date" ForeColor="#990033"></asp:CompareValidator>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <asp:Label ID="LabelDirectorate" runat="server" Text="Directorate" CssClass="st-labeltext level1"
                        AssociatedControlID="DropDownListDirectorate" Height="16px" Width="100px" />
                    <asp:DropDownList ID="DropDownListDirectorate" runat="server" CssClass="st-forminput"
                        Width="210px">
                    </asp:DropDownList>
                </div>
                <div class="clear"></div>
        </asp:Panel>
        </div>
</asp:Content>
